export function tipHook () {
    
    // 消息提醒
    const msgTip = (obj) => {
        ElMessage({
            // 'success' | 'warning' | 'info' | 'error'
            type: obj.type || 'info',
            message: obj.message || '',
            showClose: obj.showClose || false,
        });
    }


    // 通知提醒
    const noticeTip = (obj) => {
        ElNotification({
            // 'success' | 'warning' | 'info' | 'error' | ''
            type: obj.type || '',
            title: obj.title || '通知',
            message: obj.message || '',
            position: obj.position || 'top-right'
        })
    }

    return {
        msgTip,
        noticeTip
    }
}